home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / intuition.h < prev    next >
C/C++ Source or Header  |  1997-04-14  |  22KB  |  556 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_INTUITION_H
  4. #define _INLINE_INTUITION_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef INTUITION_BASE_NAME
  11. #define INTUITION_BASE_NAME IntuitionBase
  12. #endif /* !INTUITION_BASE_NAME */
  13.  
  14. #define ActivateGadget(gadgets, window, requester) \
  15.     LP3(0x1ce, BOOL, ActivateGadget, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  16.     , INTUITION_BASE_NAME)
  17.  
  18. #define ActivateWindow(window) \
  19.     LP1NR(0x1c2, ActivateWindow, struct Window *, window, a0, \
  20.     , INTUITION_BASE_NAME)
  21.  
  22. #define AddClass(classPtr) \
  23.     LP1NR(0x2ac, AddClass, struct IClass *, classPtr, a0, \
  24.     , INTUITION_BASE_NAME)
  25.  
  26. #define AddGList(window, gadget, position, numGad, requester) \
  27.     LP5(0x1b6, UWORD, AddGList, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, long, numGad, d1, struct Requester *, requester, a2, \
  28.     , INTUITION_BASE_NAME)
  29.  
  30. #define AddGadget(window, gadget, position) \
  31.     LP3(0x2a, UWORD, AddGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, \
  32.     , INTUITION_BASE_NAME)
  33.  
  34. #define AllocRemember(rememberKey, size, flags) \
  35.     LP3(0x18c, APTR, AllocRemember, struct Remember **, rememberKey, a0, unsigned long, size, d0, unsigned long, flags, d1, \
  36.     , INTUITION_BASE_NAME)
  37.  
  38. #define AllocScreenBuffer(sc, bm, flags) \
  39.     LP3(0x300, struct ScreenBuffer *, AllocScreenBuffer, struct Screen *, sc, a0, struct BitMap *, bm, a1, unsigned long, flags, d0, \
  40.     , INTUITION_BASE_NAME)
  41.  
  42. #define AlohaWorkbench(wbport) \
  43.     LP1NR(0x192, AlohaWorkbench, long, wbport, a0, \
  44.     , INTUITION_BASE_NAME)
  45.  
  46. #define AutoRequest(window, body, posText, negText, pFlag, nFlag, width, height) \
  47.     LP8(0x15c, BOOL, AutoRequest, struct Window *, window, a0, struct IntuiText *, body, a1, struct IntuiText *, posText, a2, struct IntuiText *, negText, a3, unsigned long, pFlag, d0, unsigned long, nFlag, d1, unsigned long, width, d2, unsigned long, height, d3, \
  48.     , INTUITION_BASE_NAME)
  49.  
  50. #define BeginRefresh(window) \
  51.     LP1NR(0x162, BeginRefresh, struct Window *, window, a0, \
  52.     , INTUITION_BASE_NAME)
  53.  
  54. #define BuildEasyRequestArgs(window, easyStruct, idcmp, args) \
  55.     LP4(0x252, struct Window *, BuildEasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, unsigned long, idcmp, d0, APTR, args, a3, \
  56.     , INTUITION_BASE_NAME)
  57.  
  58. #ifndef NO_INLINE_STDARG
  59. #define BuildEasyRequest(a0, a1, a2, tags...) \
  60.     ({ULONG _tags[] = { tags }; BuildEasyRequestArgs((a0), (a1), (a2), (APTR)_tags);})
  61. #endif /* !NO_INLINE_STDARG */
  62.  
  63. #define BuildSysRequest(window, body, posText, negText, flags, width, height) \
  64.     LP7(0x168, struct Window *, BuildSysRequest, struct Window *, window, a0, struct IntuiText *, body, a1, struct IntuiText *, posText, a2, struct IntuiText *, negText, a3, unsigned long, flags, d0, unsigned long, width, d1, unsigned long, height, d2, \
  65.     , INTUITION_BASE_NAME)
  66.  
  67. #define ChangeScreenBuffer(sc, sb) \
  68.     LP2(0x30c, ULONG, ChangeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \
  69.     , INTUITION_BASE_NAME)
  70.  
  71. #define ChangeWindowBox(window, left, top, width, height) \
  72.     LP5NR(0x1e6, ChangeWindowBox, struct Window *, window, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, \
  73.     , INTUITION_BASE_NAME)
  74.  
  75. #define ClearDMRequest(window) \
  76.     LP1(0x30, BOOL, ClearDMRequest, struct Window *, window, a0, \
  77.     , INTUITION_BASE_NAME)
  78.  
  79. #define ClearMenuStrip(window) \
  80.     LP1NR(0x36, ClearMenuStrip, struct Window *, window, a0, \
  81.     , INTUITION_BASE_NAME)
  82.  
  83. #define ClearPointer(window) \
  84.     LP1NR(0x3c, ClearPointer, struct Window *, window, a0, \
  85.     , INTUITION_BASE_NAME)
  86.  
  87. #define CloseScreen(screen) \
  88.     LP1(0x42, BOOL, CloseScreen, struct Screen *, screen, a0, \
  89.     , INTUITION_BASE_NAME)
  90.  
  91. #define CloseWindow(window) \
  92.     LP1NR(0x48, CloseWindow, struct Window *, window, a0, \
  93.     , INTUITION_BASE_NAME)
  94.  
  95. #define CloseWorkBench() \
  96.     LP0(0x4e, LONG, CloseWorkBench, \
  97.     , INTUITION_BASE_NAME)
  98.  
  99. #define CurrentTime(seconds, micros) \
  100.     LP2NR(0x54, CurrentTime, ULONG *, seconds, a0, ULONG *, micros, a1, \
  101.     , INTUITION_BASE_NAME)
  102.  
  103. #define DisplayAlert(alertNumber, string, height) \
  104.     LP3(0x5a, BOOL, DisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, \
  105.     , INTUITION_BASE_NAME)
  106.  
  107. #define DisplayBeep(screen) \
  108.     LP1NR(0x60, DisplayBeep, struct Screen *, screen, a0, \
  109.     , INTUITION_BASE_NAME)
  110.  
  111. #define DisposeObject(object) \
  112.     LP1NR(0x282, DisposeObject, APTR, object, a0, \
  113.     , INTUITION_BASE_NAME)
  114.  
  115. #define DoGadgetMethodA(gad, win, req, message) \
  116.     LP4(0x32a, ULONG, DoGadgetMethodA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, Msg, message, a3, \
  117.     , INTUITION_BASE_NAME)
  118.  
  119. #ifndef NO_INLINE_STDARG
  120. #define DoGadgetMethod(a0, a1, a2, tags...) \
  121.     ({ULONG _tags[] = { tags }; DoGadgetMethodA((a0), (a1), (a2), (Msg)_tags);})
  122. #endif /* !NO_INLINE_STDARG */
  123.  
  124. #define DoubleClick(sSeconds, sMicros, cSeconds, cMicros) \
  125.     LP4(0x66, BOOL, DoubleClick, unsigned long, sSeconds, d0, unsigned long, sMicros, d1, unsigned long, cSeconds, d2, unsigned long, cMicros, d3, \
  126.     , INTUITION_BASE_NAME)
  127.  
  128. #define DrawBorder(rp, border, leftOffset, topOffset) \
  129.     LP4NR(0x6c, DrawBorder, struct RastPort *, rp, a0, struct Border *, border, a1, long, leftOffset, d0, long, topOffset, d1, \
  130.     , INTUITION_BASE_NAME)
  131.  
  132. #define DrawImage(rp, image, leftOffset, topOffset) \
  133.     LP4NR(0x72, DrawImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \
  134.     , INTUITION_BASE_NAME)
  135.  
  136. #define DrawImageState(rp, image, leftOffset, topOffset, state, drawInfo) \
  137.     LP6NR(0x26a, DrawImageState, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, unsigned long, state, d2, struct DrawInfo *, drawInfo, a2, \
  138.     , INTUITION_BASE_NAME)
  139.  
  140. #define EasyRequestArgs(window, easyStruct, idcmpPtr, args) \
  141.     LP4(0x24c, LONG, EasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, ULONG *, idcmpPtr, a2, APTR, args, a3, \
  142.     , INTUITION_BASE_NAME)
  143.  
  144. #ifndef NO_INLINE_STDARG
  145. #define EasyRequest(a0, a1, a2, tags...) \
  146.     ({ULONG _tags[] = { tags }; EasyRequestArgs((a0), (a1), (a2), (APTR)_tags);})
  147. #endif /* !NO_INLINE_STDARG */
  148.  
  149. #define EndRefresh(window, complete) \
  150.     LP2NR(0x16e, EndRefresh, struct Window *, window, a0, long, complete, d0, \
  151.     , INTUITION_BASE_NAME)
  152.  
  153. #define EndRequest(requester, window) \
  154.     LP2NR(0x78, EndRequest, struct Requester *, requester, a0, struct Window *, window, a1, \
  155.     , INTUITION_BASE_NAME)
  156.  
  157. #define EraseImage(rp, image, leftOffset, topOffset) \
  158.     LP4NR(0x276, EraseImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \
  159.     , INTUITION_BASE_NAME)
  160.  
  161. #define FreeClass(classPtr) \
  162.     LP1(0x2ca, BOOL, FreeClass, struct IClass *, classPtr, a0, \
  163.     , INTUITION_BASE_NAME)
  164.  
  165. #define FreeRemember(rememberKey, reallyForget) \
  166.     LP2NR(0x198, FreeRemember, struct Remember **, rememberKey, a0, long, reallyForget, d0, \
  167.     , INTUITION_BASE_NAME)
  168.  
  169. #define FreeScreenBuffer(sc, sb) \
  170.     LP2NR(0x306, FreeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \
  171.     , INTUITION_BASE_NAME)
  172.  
  173. #define FreeScreenDrawInfo(screen, drawInfo) \
  174.     LP2NR(0x2b8, FreeScreenDrawInfo, struct Screen *, screen, a0, struct DrawInfo *, drawInfo, a1, \
  175.     , INTUITION_BASE_NAME)
  176.  
  177. #define FreeSysRequest(window) \
  178.     LP1NR(0x174, FreeSysRequest, struct Window *, window, a0, \
  179.     , INTUITION_BASE_NAME)
  180.  
  181. #define GadgetMouse(gadget, gInfo, mousePoint) \
  182.     LP3NR(0x23a, GadgetMouse, struct Gadget *, gadget, a0, struct GadgetInfo *, gInfo, a1, WORD *, mousePoint, a2, \
  183.     , INTUITION_BASE_NAME)
  184.  
  185. #define GetAttr(attrID, object, storagePtr) \
  186.     LP3(0x28e, ULONG, GetAttr, unsigned long, attrID, d0, APTR, object, a0, ULONG *, storagePtr, a1, \
  187.     , INTUITION_BASE_NAME)
  188.  
  189. #define GetDefPrefs(preferences, size) \
  190.     LP2(0x7e, struct Preferences *, GetDefPrefs, struct Preferences *, preferences, a0, long, size, d0, \
  191.     , INTUITION_BASE_NAME)
  192.  
  193. #define GetDefaultPubScreen(nameBuffer) \
  194.     LP1NR(0x246, GetDefaultPubScreen, UBYTE *, nameBuffer, a0, \
  195.     , INTUITION_BASE_NAME)
  196.  
  197. #define GetPrefs(preferences, size) \
  198.     LP2(0x84, struct Preferences *, GetPrefs, struct Preferences *, preferences, a0, long, size, d0, \
  199.     , INTUITION_BASE_NAME)
  200.  
  201. #define GetScreenData(buffer, size, type, screen) \
  202.     LP4(0x1aa, LONG, GetScreenData, APTR, buffer, a0, unsigned long, size, d0, unsigned long, type, d1, struct Screen *, screen, a1, \
  203.     , INTUITION_BASE_NAME)
  204.  
  205. #define GetScreenDrawInfo(screen) \
  206.     LP1(0x2b2, struct DrawInfo *, GetScreenDrawInfo, struct Screen *, screen, a0, \
  207.     , INTUITION_BASE_NAME)
  208.  
  209. #define HelpControl(win, flags) \
  210.     LP2NR(0x33c, HelpControl, struct Window *, win, a0, unsigned long, flags, d0, \
  211.     , INTUITION_BASE_NAME)
  212.  
  213. #define InitRequester(requester) \
  214.     LP1NR(0x8a, InitRequester, struct Requester *, requester, a0, \
  215.     , INTUITION_BASE_NAME)
  216.  
  217. #define IntuiTextLength(iText) \
  218.     LP1(0x14a, LONG, IntuiTextLength, struct IntuiText *, iText, a0, \
  219.     , INTUITION_BASE_NAME)
  220.  
  221. #define Intuition(iEvent) \
  222.     LP1NR(0x24, Intuition, struct InputEvent *, iEvent, a0, \
  223.     , INTUITION_BASE_NAME)
  224.  
  225. #define ItemAddress(menuStrip, menuNumber) \
  226.     LP2(0x90, struct MenuItem *, ItemAddress, struct Menu *, menuStrip, a0, unsigned long, menuNumber, d0, \
  227.     , INTUITION_BASE_NAME)
  228.  
  229. #define LendMenus(fromwindow, towindow) \
  230.     LP2NR(0x324, LendMenus, struct Window *, fromwindow, a0, struct Window *, towindow, a1, \
  231.     , INTUITION_BASE_NAME)
  232.  
  233. #define LockIBase(dontknow) \
  234.     LP1(0x19e, ULONG, LockIBase, unsigned long, dontknow, d0, \
  235.     , INTUITION_BASE_NAME)
  236.  
  237. #define LockPubScreen(name) \
  238.     LP1(0x1fe, struct Screen *, LockPubScreen, UBYTE *, name, a0, \
  239.     , INTUITION_BASE_NAME)
  240.  
  241. #define LockPubScreenList() \
  242.     LP0(0x20a, struct List *, LockPubScreenList, \
  243.     , INTUITION_BASE_NAME)
  244.  
  245. #define MakeClass(classID, superClassID, superClassPtr, instanceSize, flags) \
  246.     LP5(0x2a6, struct IClass *, MakeClass, UBYTE *, classID, a0, UBYTE *, superClassID, a1, struct IClass *, superClassPtr, a2, unsigned long, instanceSize, d0, unsigned long, flags, d1, \
  247.     , INTUITION_BASE_NAME)
  248.  
  249. #define MakeScreen(screen) \
  250.     LP1(0x17a, LONG, MakeScreen, struct Screen *, screen, a0, \
  251.     , INTUITION_BASE_NAME)
  252.  
  253. #define ModifyIDCMP(window, flags) \
  254.     LP2(0x96, BOOL, ModifyIDCMP, struct Window *, window, a0, unsigned long, flags, d0, \
  255.     , INTUITION_BASE_NAME)
  256.  
  257. #define ModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody) \
  258.     LP8NR(0x9c, ModifyProp, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, unsigned long, flags, d0, unsigned long, horizPot, d1, unsigned long, vertPot, d2, unsigned long, horizBody, d3, unsigned long, vertBody, d4, \
  259.     , INTUITION_BASE_NAME)
  260.  
  261. #define MoveScreen(screen, dx, dy) \
  262.     LP3NR(0xa2, MoveScreen, struct Screen *, screen, a0, long, dx, d0, long, dy, d1, \
  263.     , INTUITION_BASE_NAME)
  264.  
  265. #define MoveWindow(window, dx, dy) \
  266.     LP3NR(0xa8, MoveWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \
  267.     , INTUITION_BASE_NAME)
  268.  
  269. #define MoveWindowInFrontOf(window, behindWindow) \
  270.     LP2NR(0x1e0, MoveWindowInFrontOf, struct Window *, window, a0, struct Window *, behindWindow, a1, \
  271.     , INTUITION_BASE_NAME)
  272.  
  273. #define NewModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody, numGad) \
  274.     LP9NR(0x1d4, NewModifyProp, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, unsigned long, flags, d0, unsigned long, horizPot, d1, unsigned long, vertPot, d2, unsigned long, horizBody, d3, unsigned long, vertBody, d4, long, numGad, d5, \
  275.     , INTUITION_BASE_NAME)
  276.  
  277. #define NewObjectA(classPtr, classID, tagList) \
  278.     LP3(0x27c, APTR, NewObjectA, struct IClass *, classPtr, a0, UBYTE *, classID, a1, struct TagItem *, tagList, a2, \
  279.     , INTUITION_BASE_NAME)
  280.  
  281. #ifndef NO_INLINE_STDARG
  282. #define NewObject(a0, a1, tags...) \
  283.     ({ULONG _tags[] = { tags }; NewObjectA((a0), (a1), (struct TagItem *)_tags);})
  284. #endif /* !NO_INLINE_STDARG */
  285.  
  286. #define NextObject(objectPtrPtr) \
  287.     LP1(0x29a, APTR, NextObject, APTR, objectPtrPtr, a0, \
  288.     , INTUITION_BASE_NAME)
  289.  
  290. #define NextPubScreen(screen, namebuf) \
  291.     LP2(0x216, UBYTE *, NextPubScreen, struct Screen *, screen, a0, UBYTE *, namebuf, a1, \
  292.     , INTUITION_BASE_NAME)
  293.  
  294. #define ObtainGIRPort(gInfo) \
  295.     LP1(0x22e, struct RastPort *, ObtainGIRPort, struct GadgetInfo *, gInfo, a0, \
  296.     , INTUITION_BASE_NAME)
  297.  
  298. #define OffGadget(gadget, window, requester) \
  299.     LP3NR(0xae, OffGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  300.     , INTUITION_BASE_NAME)
  301.  
  302. #define OffMenu(window, menuNumber) \
  303.     LP2NR(0xb4, OffMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \
  304.     , INTUITION_BASE_NAME)
  305.  
  306. #define OnGadget(gadget, window, requester) \
  307.     LP3NR(0xba, OnGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  308.     , INTUITION_BASE_NAME)
  309.  
  310. #define OnMenu(window, menuNumber) \
  311.     LP2NR(0xc0, OnMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \
  312.     , INTUITION_BASE_NAME)
  313.  
  314. #define OpenIntuition() \
  315.     LP0NR(0x1e, OpenIntuition, \
  316.     , INTUITION_BASE_NAME)
  317.  
  318. #define OpenScreen(newScreen) \
  319.     LP1(0xc6, struct Screen *, OpenScreen, struct NewScreen *, newScreen, a0, \
  320.     , INTUITION_BASE_NAME)
  321.  
  322. #define OpenScreenTagList(newScreen, tagList) \
  323.     LP2(0x264, struct Screen *, OpenScreenTagList, struct NewScreen *, newScreen, a0, struct TagItem *, tagList, a1, \
  324.     , INTUITION_BASE_NAME)
  325.  
  326. #ifndef NO_INLINE_STDARG
  327. #define OpenScreenTags(a0, tags...) \
  328.     ({ULONG _tags[] = { tags }; OpenScreenTagList((a0), (struct TagItem *)_tags);})
  329. #endif /* !NO_INLINE_STDARG */
  330.  
  331. #define OpenWindow(newWindow) \
  332.     LP1(0xcc, struct Window *, OpenWindow, struct NewWindow *, newWindow, a0, \
  333.     , INTUITION_BASE_NAME)
  334.  
  335. #define OpenWindowTagList(newWindow, tagList) \
  336.     LP2(0x25e, struct Window *, OpenWindowTagList, struct NewWindow *, newWindow, a0, struct TagItem *, tagList, a1, \
  337.     , INTUITION_BASE_NAME)
  338.  
  339. #ifndef NO_INLINE_STDARG
  340. #define OpenWindowTags(a0, tags...) \
  341.     ({ULONG _tags[] = { tags }; OpenWindowTagList((a0), (struct TagItem *)_tags);})
  342. #endif /* !NO_INLINE_STDARG */
  343.  
  344. #define OpenWorkBench() \
  345.     LP0(0xd2, ULONG, OpenWorkBench, \
  346.     , INTUITION_BASE_NAME)
  347.  
  348. #define PointInImage(point, image) \
  349.     LP2(0x270, BOOL, PointInImage, unsigned long, point, d0, struct Image *, image, a0, \
  350.     , INTUITION_BASE_NAME)
  351.  
  352. #define PrintIText(rp, iText, left, top) \
  353.     LP4NR(0xd8, PrintIText, struct RastPort *, rp, a0, struct IntuiText *, iText, a1, long, left, d0, long, top, d1, \
  354.     , INTUITION_BASE_NAME)
  355.  
  356. #define PubScreenStatus(screen, statusFlags) \
  357.     LP2(0x228, UWORD, PubScreenStatus, struct Screen *, screen, a0, unsigned long, statusFlags, d0, \
  358.     , INTUITION_BASE_NAME)
  359.  
  360. #define QueryOverscan(displayID, rect, oScanType) \
  361.     LP3(0x1da, LONG, QueryOverscan, unsigned long, displayID, a0, struct Rectangle *, rect, a1, long, oScanType, d0, \
  362.     , INTUITION_BASE_NAME)
  363.  
  364. #define RefreshGList(gadgets, window, requester, numGad) \
  365.     LP4NR(0x1b0, RefreshGList, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, long, numGad, d0, \
  366.     , INTUITION_BASE_NAME)
  367.  
  368. #define RefreshGadgets(gadgets, window, requester) \
  369.     LP3NR(0xde, RefreshGadgets, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  370.     , INTUITION_BASE_NAME)
  371.  
  372. #define RefreshWindowFrame(window) \
  373.     LP1NR(0x1c8, RefreshWindowFrame, struct Window *, window, a0, \
  374.     , INTUITION_BASE_NAME)
  375.  
  376. #define ReleaseGIRPort(rp) \
  377.     LP1NR(0x234, ReleaseGIRPort, struct RastPort *, rp, a0, \
  378.     , INTUITION_BASE_NAME)
  379.  
  380. #define RemakeDisplay() \
  381.     LP0(0x180, LONG, RemakeDisplay, \
  382.     , INTUITION_BASE_NAME)
  383.  
  384. #define RemoveClass(classPtr) \
  385.     LP1NR(0x2c4, RemoveClass, struct IClass *, classPtr, a0, \
  386.     , INTUITION_BASE_NAME)
  387.  
  388. #define RemoveGList(remPtr, gadget, numGad) \
  389.     LP3(0x1bc, UWORD, RemoveGList, struct Window *, remPtr, a0, struct Gadget *, gadget, a1, long, numGad, d0, \
  390.     , INTUITION_BASE_NAME)
  391.  
  392. #define RemoveGadget(window, gadget) \
  393.     LP2(0xe4, UWORD, RemoveGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, \
  394.     , INTUITION_BASE_NAME)
  395.  
  396. #define ReportMouse(flag, window) \
  397.     LP2NR(0xea, ReportMouse, long, flag, d0, struct Window *, window, a0, \
  398.     , INTUITION_BASE_NAME)
  399.  
  400. #define Request(requester, window) \
  401.     LP2(0xf0, BOOL, Request, struct Requester *, requester, a0, struct Window *, window, a1, \
  402.     , INTUITION_BASE_NAME)
  403.  
  404. #define ResetMenuStrip(window, menu) \
  405.     LP2(0x2be, BOOL, ResetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \
  406.     , INTUITION_BASE_NAME)
  407.  
  408. #define RethinkDisplay() \
  409.     LP0(0x186, LONG, RethinkDisplay, \
  410.     , INTUITION_BASE_NAME)
  411.  
  412. #define ScreenDepth(screen, flags, reserved) \
  413.     LP3NR(0x312, ScreenDepth, struct Screen *, screen, a0, unsigned long, flags, d0, APTR, reserved, a1, \
  414.     , INTUITION_BASE_NAME)
  415.  
  416. #define ScreenPosition(screen, flags, x1, y1, x2, y2) \
  417.     LP6NR(0x318, ScreenPosition, struct Screen *, screen, a0, unsigned long, flags, d0, long, x1, d1, long, y1, d2, long, x2, d3, long, y2, d4, \
  418.     , INTUITION_BASE_NAME)
  419.  
  420. #define ScreenToBack(screen) \
  421.     LP1NR(0xf6, ScreenToBack, struct Screen *, screen, a0, \
  422.     , INTUITION_BASE_NAME)
  423.  
  424. #define ScreenToFront(screen) \
  425.     LP1NR(0xfc, ScreenToFront, struct Screen *, screen, a0, \
  426.     , INTUITION_BASE_NAME)
  427.  
  428. #define ScrollWindowRaster(win, dx, dy, xMin, yMin, xMax, yMax) \
  429.     LP7NR(0x31e, ScrollWindowRaster, struct Window *, win, a1, long, dx, d0, long, dy, d1, long, xMin, d2, long, yMin, d3, long, xMax, d4, long, yMax, d5, \
  430.     , INTUITION_BASE_NAME)
  431.  
  432. #define SetAttrsA(object, tagList) \
  433.     LP2(0x288, ULONG, SetAttrsA, APTR, object, a0, struct TagItem *, tagList, a1, \
  434.     , INTUITION_BASE_NAME)
  435.  
  436. #ifndef NO_INLINE_STDARG
  437. #define SetAttrs(a0, tags...) \
  438.     ({ULONG _tags[] = { tags }; SetAttrsA((a0), (struct TagItem *)_tags);})
  439. #endif /* !NO_INLINE_STDARG */
  440.  
  441. #define SetDMRequest(window, requester) \
  442.     LP2(0x102, BOOL, SetDMRequest, struct Window *, window, a0, struct Requester *, requester, a1, \
  443.     , INTUITION_BASE_NAME)
  444.  
  445. #define SetDefaultPubScreen(name) \
  446.     LP1NR(0x21c, SetDefaultPubScreen, UBYTE *, name, a0, \
  447.     , INTUITION_BASE_NAME)
  448.  
  449. #define SetEditHook(hook) \
  450.     LP1(0x1ec, struct Hook *, SetEditHook, struct Hook *, hook, a0, \
  451.     , INTUITION_BASE_NAME)
  452.  
  453. #define SetGadgetAttrsA(gadget, window, requester, tagList) \
  454.     LP4(0x294, ULONG, SetGadgetAttrsA, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, struct TagItem *, tagList, a3, \
  455.     , INTUITION_BASE_NAME)
  456.  
  457. #ifndef NO_INLINE_STDARG
  458. #define SetGadgetAttrs(a0, a1, a2, tags...) \
  459.     ({ULONG _tags[] = { tags }; SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  460. #endif /* !NO_INLINE_STDARG */
  461.  
  462. #define SetMenuStrip(window, menu) \
  463.     LP2(0x108, BOOL, SetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \
  464.     , INTUITION_BASE_NAME)
  465.  
  466. #define SetMouseQueue(window, queueLength) \
  467.     LP2(0x1f2, LONG, SetMouseQueue, struct Window *, window, a0, unsigned long, queueLength, d0, \
  468.     , INTUITION_BASE_NAME)
  469.  
  470. #define SetPointer(window, pointer, height, width, xOffset, yOffset) \
  471.     LP6NR(0x10e, SetPointer, struct Window *, window, a0, UWORD *, pointer, a1, long, height, d0, long, width, d1, long, xOffset, d2, long, yOffset, d3, \
  472.     , INTUITION_BASE_NAME)
  473.  
  474. #define SetPrefs(preferences, size, inform) \
  475.     LP3(0x144, struct Preferences *, SetPrefs, struct Preferences *, preferences, a0, long, size, d0, long, inform, d1, \
  476.     , INTUITION_BASE_NAME)
  477.  
  478. #define SetPubScreenModes(modes) \
  479.     LP1(0x222, UWORD, SetPubScreenModes, unsigned long, modes, d0, \
  480.     , INTUITION_BASE_NAME)
  481.  
  482. #define SetWindowPointerA(win, taglist) \
  483.     LP2NR(0x330, SetWindowPointerA, struct Window *, win, a0, struct TagItem *, taglist, a1, \
  484.     , INTUITION_BASE_NAME)
  485.  
  486. #ifndef NO_INLINE_STDARG
  487. #define SetWindowPointer(a0, tags...) \
  488.     ({ULONG _tags[] = { tags }; SetWindowPointerA((a0), (struct TagItem *)_tags);})
  489. #endif /* !NO_INLINE_STDARG */
  490.  
  491. #define SetWindowTitles(window, windowTitle, screenTitle) \
  492.     LP3NR(0x114, SetWindowTitles, struct Window *, window, a0, UBYTE *, windowTitle, a1, UBYTE *, screenTitle, a2, \
  493.     , INTUITION_BASE_NAME)
  494.  
  495. #define ShowTitle(screen, showIt) \
  496.     LP2NR(0x11a, ShowTitle, struct Screen *, screen, a0, long, showIt, d0, \
  497.     , INTUITION_BASE_NAME)
  498.  
  499. #define SizeWindow(window, dx, dy) \
  500.     LP3NR(0x120, SizeWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \
  501.     , INTUITION_BASE_NAME)
  502.  
  503. #define SysReqHandler(window, idcmpPtr, waitInput) \
  504.     LP3(0x258, LONG, SysReqHandler, struct Window *, window, a0, ULONG *, idcmpPtr, a1, long, waitInput, d0, \
  505.     , INTUITION_BASE_NAME)
  506.  
  507. #define TimedDisplayAlert(alertNumber, string, height, time) \
  508.     LP4(0x336, BOOL, TimedDisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, unsigned long, time, a1, \
  509.     , INTUITION_BASE_NAME)
  510.  
  511. #define UnlockIBase(ibLock) \
  512.     LP1NR(0x1a4, UnlockIBase, unsigned long, ibLock, a0, \
  513.     , INTUITION_BASE_NAME)
  514.  
  515. #define UnlockPubScreen(name, screen) \
  516.     LP2NR(0x204, UnlockPubScreen, UBYTE *, name, a0, struct Screen *, screen, a1, \
  517.     , INTUITION_BASE_NAME)
  518.  
  519. #define UnlockPubScreenList() \
  520.     LP0NR(0x210, UnlockPubScreenList, \
  521.     , INTUITION_BASE_NAME)
  522.  
  523. #define ViewAddress() \
  524.     LP0(0x126, struct View *, ViewAddress, \
  525.     , INTUITION_BASE_NAME)
  526.  
  527. #define ViewPortAddress(window) \
  528.     LP1(0x12c, struct ViewPort *, ViewPortAddress, struct Window *, window, a0, \
  529.     , INTUITION_BASE_NAME)
  530.  
  531. #define WBenchToBack() \
  532.     LP0(0x150, BOOL, WBenchToBack, \
  533.     , INTUITION_BASE_NAME)
  534.  
  535. #define WBenchToFront() \
  536.     LP0(0x156, BOOL, WBenchToFront, \
  537.     , INTUITION_BASE_NAME)
  538.  
  539. #define WindowLimits(window, widthMin, heightMin, widthMax, heightMax) \
  540.     LP5(0x13e, BOOL, WindowLimits, struct Window *, window, a0, long, widthMin, d0, long, heightMin, d1, unsigned long, widthMax, d2, unsigned long, heightMax, d3, \
  541.     , INTUITION_BASE_NAME)
  542.  
  543. #define WindowToBack(window) \
  544.     LP1NR(0x132, WindowToBack, struct Window *, window, a0, \
  545.     , INTUITION_BASE_NAME)
  546.  
  547. #define WindowToFront(window) \
  548.     LP1NR(0x138, WindowToFront, struct Window *, window, a0, \
  549.     , INTUITION_BASE_NAME)
  550.  
  551. #define ZipWindow(window) \
  552.     LP1NR(0x1f8, ZipWindow, struct Window *, window, a0, \
  553.     , INTUITION_BASE_NAME)
  554.  
  555. #endif /* !_INLINE_INTUITION_H */
  556.